package gulimall.service;

import gulimall.entity.Category;
import com.baomidou.mybatisplus.extension.service.IService;
import gulimall.vo.web.Catelog2Vo;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 商品三级分类 服务类
 * </p>
 *
 * @author HLF
 * @since 2022-04-23
 */
public interface ICategoryService extends IService<Category> {

    List<Category> listWithTree();

    int removeMenusByIds(Long[] catIds);

    List<Long> getCatIdsByLeaf(Long catId);

    boolean updateCascader(Category category);

    List<Category> listLevel1();

    Map<String, List<Catelog2Vo>> getCategoryJson();
}
